package com.worldcup.service.user;

import com.worldcup.dao.user.UserAddInfoRepository;
import com.worldcup.model.user.UserAddInfo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author duwan.zq
 * @date 2019/05/06
 */
@Slf4j
@Service
public class UserAddInfoService {

    @Autowired
    private UserAddInfoRepository userAddInfoRepository;

    /**
     * 保存
     * @param userAddInfo
     */
    @Transactional(rollbackFor = Exception.class)
    public void save(UserAddInfo userAddInfo) {
        userAddInfoRepository.save(userAddInfo);
    }
}
